package com.meixiang.entity.training;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @author yinsujun  Created at 2016/6/25 15:19
 */
public class TrainingEvaluate implements Parcelable {

    /**
     * evaluateId : 19
     * businessId : 291
     * o2oServiceOrderId : 2
     * memberId : 104
     * memberName : SD0001
     * memberImg : /upload/img/avatar/1458031543010.png
     * type : 3
     * label :
     * grade : 5.0
     * content : 评价的内容什么的
     * evaluateTime : 1466503285000
     * getEvalPicLinks : []
     * evalPicLinks : [](美容培训评价)
     */

    private String evaluateId;
    private String businessId;
    private String o2oServiceOrderId;
    private String memberId;
    private String memberName;
    private String memberImg;
    private String type;
    private String label;
    private String grade;
    private String content;
    private String evaluateTime;
    private List<String> getEvalPicLinks;
    private List<String> evalPicLinks;

    public List<String> getEvalPicLinks() {
        return evalPicLinks;
    }

    public void setEvalPicLinks(List<String> evalPicLinks) {
        this.evalPicLinks = evalPicLinks;
    }

    public String getEvaluateId() {
        return evaluateId;
    }

    public void setEvaluateId(String evaluateId) {
        this.evaluateId = evaluateId;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getO2oServiceOrderId() {
        return o2oServiceOrderId;
    }

    public void setO2oServiceOrderId(String o2oServiceOrderId) {
        this.o2oServiceOrderId = o2oServiceOrderId;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberImg() {
        return memberImg;
    }

    public void setMemberImg(String memberImg) {
        this.memberImg = memberImg;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getEvaluateTime() {
        return evaluateTime;
    }

    public void setEvaluateTime(String evaluateTime) {
        this.evaluateTime = evaluateTime;
    }

    public List<String> getGetEvalPicLinks() {
        return getEvalPicLinks;
    }

    public void setGetEvalPicLinks(List<String> getEvalPicLinks) {
        this.getEvalPicLinks = getEvalPicLinks;
    }

    @Override
    public String toString() {
        return "TrainingEvaluate{" +
                "evaluateId='" + evaluateId + '\'' +
                ", businessId='" + businessId + '\'' +
                ", o2oServiceOrderId='" + o2oServiceOrderId + '\'' +
                ", memberId='" + memberId + '\'' +
                ", memberName='" + memberName + '\'' +
                ", memberImg='" + memberImg + '\'' +
                ", type='" + type + '\'' +
                ", label='" + label + '\'' +
                ", grade='" + grade + '\'' +
                ", content='" + content + '\'' +
                ", evaluateTime='" + evaluateTime + '\'' +
                ", getEvalPicLinks=" + getEvalPicLinks +
                ", evalPicLinks=" + evalPicLinks +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.evaluateId);
        dest.writeString(this.businessId);
        dest.writeString(this.o2oServiceOrderId);
        dest.writeString(this.memberId);
        dest.writeString(this.memberName);
        dest.writeString(this.memberImg);
        dest.writeString(this.type);
        dest.writeString(this.label);
        dest.writeString(this.grade);
        dest.writeString(this.content);
        dest.writeString(this.evaluateTime);
        dest.writeStringList(this.getEvalPicLinks);
        dest.writeStringList(this.evalPicLinks);
    }

    public TrainingEvaluate() {
    }

    protected TrainingEvaluate(Parcel in) {
        this.evaluateId = in.readString();
        this.businessId = in.readString();
        this.o2oServiceOrderId = in.readString();
        this.memberId = in.readString();
        this.memberName = in.readString();
        this.memberImg = in.readString();
        this.type = in.readString();
        this.label = in.readString();
        this.grade = in.readString();
        this.content = in.readString();
        this.evaluateTime = in.readString();
        this.getEvalPicLinks = in.createStringArrayList();
        this.evalPicLinks=in.createStringArrayList();
    }

    public static final Parcelable.Creator<TrainingEvaluate> CREATOR = new Parcelable.Creator<TrainingEvaluate>() {
        @Override
        public TrainingEvaluate createFromParcel(Parcel source) {
            return new TrainingEvaluate(source);
        }

        @Override
        public TrainingEvaluate[] newArray(int size) {
            return new TrainingEvaluate[size];
        }
    };
}
